using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace SAE.Forms
{
    public partial class ObjectViewrDialog : Form
    {
        public ObjectViewrDialog()
        {
            InitializeComponent();
        }

        public Object Object
        {
            set
            {
                this.propertyGrid.SelectedObject = value;

                if (value != null)
                {
                    this.richTextBox.Text = value.ToString();
                }
                else
                {
                    this.richTextBox.Text = "Null";
                }                
            }
        }
    }
}